package cn.itsource.ldj.base.mapper;
import cn.itsource.ldj.org.query.BaseQuery;
import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);

    T findOne(Long id);

    List<T> findAll();

    Integer findCount(BaseQuery baseQuery);

    List<T> queryPage(BaseQuery baseQuery);

    void batchRemove(List<Long> ids);
}
